// see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')

module.exports = {
	build: {
		env: require('./prod.env'),
		index: path.resolve(__dirname, '../dist/index.html'),
		assetsRoot: path.resolve(__dirname, '../dist'),
		assetsSubDirectory: 'static',
		assetsPublicPath: './',
		productionSourceMap: true,

		proxyTable: {
			
		},
		productionGzip: false,
		productionGzipExtensions: ['js', 'css'],
		bundleAnalyzerReport: process.env.npm_config_report
	},
	dev: {
		env: require('./dev.env'),
		port: 8081,
		autoOpenBrowser: true,
		assetsSubDirectory: 'static',
		assetsPublicPath: '/',
		proxyTable: {
			//    	跨域请求配置
			'/api': {
				target: 'http://test.api.dktai.cn',
				changeOrigin: true,
				pathRewrite: {
			      '^/api': ''
			    }
			},
			'/nat': {
				target: 'http://154w3c3370.iok.la:16433',
				changeOrigin: true,
				pathRewrite: {
			      '^/nat': ''
			    }
			},
		},
		cssSourceMap: false
	}
}